package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;

/**
 * @ClassName: ProjectForProjectMemberListForInviteRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-14
 * @Version: 1.0
 * Table: pear_project
 * Comment:
 * 项目表
 */
public class ProjectForProjectMemberListForInviteRequestConvert extends BaseConvert {
    public static ProjectForProjectMemberListForInvite convert(ProjectForProjectMemberListForInviteRequest request) throws Exception {
        ProjectForProjectMemberListForInvite daoRequest = new ProjectForProjectMemberListForInvite();
        copyProperties(request, daoRequest);

        daoRequest.setMemberCode(daoRequest.getMemberCode() == null ? null : daoRequest.getMemberCode().trim());
        daoRequest.setAvatar(daoRequest.getAvatar() == null ? null : daoRequest.getAvatar().trim());
        daoRequest.setName(daoRequest.getName() == null ? null : daoRequest.getName().trim());
        daoRequest.setEmail(daoRequest.getEmail() == null ? null : daoRequest.getEmail().trim());
        daoRequest.setOrganizationCode(daoRequest.getOrganizationCode() == null ? null : daoRequest.getOrganizationCode().trim());
        daoRequest.setJoinTime(daoRequest.getJoinTime() == null ? null : daoRequest.getJoinTime().trim());
        daoRequest.setProjectCode(daoRequest.getProjectCode() == null ? null : daoRequest.getProjectCode().trim());
        daoRequest.setKeyword(daoRequest.getKeyword() == null ? null : daoRequest.getKeyword().trim());

        return daoRequest;
    }
}
